package club.justwill.single.Service;

import club.justwill.single.bean.Activity.CreateActivity;
import club.justwill.single.bean.Activity.JoinActivity;
import club.justwill.single.bean.SearchActivity;
import club.justwill.single.model.JsonResponse;
import club.justwill.single.model.SecurityToken;
import club.justwill.single.persistence.jpo.Activity;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import java.util.List;
import java.util.Map;

/**
 * Created by xiangnan on 16-1-15.
 */
public interface ActivityService {

    public Activity createActivity(SecurityToken token, JsonResponse obj, CreateActivity createActivity);
    public void joinActivity(SecurityToken token, JsonResponse obj, Long activityId);
    public Map<String, List> getActivity(SecurityToken token, JsonResponse obj);

    public void uploadActivityCover(SecurityToken token, JsonResponse obj, CommonsMultipartFile activityCover, Long activityId);

    public List<Activity> searchActivity(JsonResponse obj, SearchActivity searchActivity);
}
